﻿using Dapper.DBContext.Schema;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Guoc.BigMall.Domain.Entity
{
    [Table("wechat_accesstoken")]
   public class WechatAccountToken:BaseEntity
    {
        public WechatAccountToken() {
            this.CreatedAt = DateTime.Now;
            this.LastGetAt = this.CreatedAt;
        }

        /// <summary>
        ///  AccessToken   JsTicket
        /// </summary>
        public string TokenType { get; set; }
        
        /// <summary>
        ///  普通访问接口token
        /// </summary>
        public string Token { get; set; }

         /// <summary>
         ///  普通接口token 过期时间
         /// </summary>
         public int ExpiresIn { get; set; }

         public DateTime CreatedAt { get; set; }

         public DateTime LastGetAt { get; set; }

         public string AppId { get; set; }
    }
}
